package com.syh.jn.scm.domain.supplier.event;

import com.syh.core.ddd.domain.DomainEvent;
import com.syh.jn.scm.domain.supplier.entity.base.goods.Goods;

public class GoodsEvent extends DomainEvent<Goods> {
  public static final String GOODS_SAVE = "goodsEventAdd";

  public static GoodsEvent buildGoodsSave(Object[] values) {
    GoodsEvent goodsEvent = new GoodsEvent();
    goodsEvent.eventName = GOODS_SAVE;
    goodsEvent.values = values;
    return goodsEvent;
  }

  public static final String GOODS_DEL = "goodsEventDel";

  public static GoodsEvent buildGoodsDel(Object[] values) {
    GoodsEvent goodsEvent = new GoodsEvent();
    goodsEvent.eventName = GOODS_DEL;
    goodsEvent.values = values;
    return goodsEvent;
  }

  public static final String GOODS_UPDATE = "goodsEventUpdate";

  public static GoodsEvent buildGoodsUpdate(Object[] values) {
    GoodsEvent goodsEvent = new GoodsEvent();
    goodsEvent.eventName = GOODS_UPDATE;
    goodsEvent.values = values;
    return goodsEvent;
  }
}
